<?php
	require_once('model/User.php');
	require_once('model/Question.php');


	final class FAQ extends Controller{
			public function Index(){
				$this->stylesheet = 'FAQ-form';						
								
				$this->headers['Content-type'] = 'text/html';
				$this->page->MountSource(Question::FAQ());
			}
			
			public function Ask(){
				
				if($this->params['subaction']=='submit') {
					$obj = new Question();
					$obj->Content(mes(rToBr($this->request['content'])));
					$obj->Save();
					$this->Redirect('/');
					return ;	
				
				}
				$this->stylesheet = 'Ask-form';
			}

	}
?>